package utils;

import java.net.InetAddress;

public class StringUtil {
    /**
     * Get the IP which is used as an identity number
     * 
     * @return IP String
     */
    public static String getIP() {
	try {
	    InetAddress addr = InetAddress.getLocalHost();
	    return addr.getHostAddress().toString();
	} catch (Exception e) {
	    e.printStackTrace();
	    return "";
	}
    }
}
